package net.whg.java.abstrac;

/**
 * 等边三角形
 */
public class EquilateralTriangle extends Triangle{

    public EquilateralTriangle(double side) {
        super(side, side, side);
    }

    @Override
    public void calculateArea() {
        area = Math.sqrt(3) / 4 * Math.pow(a, 2);
    }
}
